<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <select class="form-control" v-model="q.processStatus" @keyup.enter="query">
                    <option value="">请选择审批状态</option>
                    <option value="0">未审核</option>
                    <option value="1">审核通过</option>
                    <option value="2">审核不通过</option>
                    <option value="3">初始化</option>
                </select>
            </div>
            <div class="form-group col-sm-2">
                <select class="form-control" v-model="q.shootType" @keyup.enter="query">
                    <!--<option disabled value="">请选择随拍类型</option>-->
                    <option value="2">快速挪车</option>
                </select>
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.userName" @keyup.enter="query" placeholder="用户名">
            </div>
            <a class="btn btn-default" @click="query">查询</a>

			<#if shiro.hasPermission("carMove:shootCarMove:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("carMove:shootCarMove:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("carMove:shootCarMove:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <!--审批悬浮框-->
    <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog"
         tabindex="-1" id="pic_process" class="modal fade">
        <div class="modal-dialog" style="width:1000px;height:1400px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" style="color:#676767" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="roletitle1">审批</h4>
                    <!--<input type="hidden" class="form-control" width="80%" v-model="processView.shootId" placeholder="拍摄地址"/>-->
                </div>
                <div class="modal-body">
                    <fieldset title="Billing Details">
                        <font style="font-size: 16px">请选择是否通过,并点击提交</font>
                        <input type="radio" id="pass_approve" value="1" v-model="processView.processStatus">
                        <label for="pass_approve"><font style="font-size: 16px">通过</font>&nbsp;&nbsp;</label>
                        <input type="radio" id="fail_unapprove" value="2" v-model="processView.processStatus">
                        <label for="fail_unapprove"><font style="font-size: 16px">不通过</font></label>
                    </fieldset>
                    <div class="row" id="pic_unapproved"></div>
                <div class="modal-footerm" style="text-align: center">
                    <button type="button" class="btn btn-default" data-dismiss="modal" @click="doApprovalOption">提交</button>
                    <!--style="margin-left: 50%">提交</button>-->
                </div>
                </div>
                <div class="modal-footerm"></div>

            </div>

        </div>

    </div>




    <!--预览悬浮框-->
    <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="pic_showView" class="modal fade">
        <div class="modal-dialog" style="width: 1000px; height: 1400px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" style="color: #676767"
                            data-dismiss="modal" aria-hidden="true">&times;
                    </button>
                    <h4 class="modal-title" id="roletitle">预览</h4>
                </div>
                <div class="modal-body">
                    <fieldset title="Billing Details"></fieldset>
                    <div class="row" id="pic_showList"></div>
                </div>
            </div>
        </div>
    </div>




    <!--无用-->
    <div v-show="!showList" class="panel panel-default" align="center">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal" style="width:70%!important;">
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">拍摄地址</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="shoot.shootAddress" placeholder="拍摄地址"/>
	                </div>
                    <div class="col-sm-2 control-label" style="width: 10%;">经度</div>
                    <div class="col-sm-10" style="width: 40%;">
                        <input type="text" class="form-control" width="80%" v-model="shoot.locationX" placeholder="经度"/>
                    </div>
                </div>
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">纬度</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="shoot.locationY" placeholder="纬度"/>
	                </div>
                    <div class="col-sm-2 control-label" style="width: 10%;">用户名</div>
                    <div class="col-sm-10" style="width: 40%;">
                        <input type="text" class="form-control" width="80%" v-model="shoot.userName" placeholder="用户名"/>
                    </div>
                </div>
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">审核状态0-未审核，1-审核通过，2审核不通过，3-初始化</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="shoot.processStatus" placeholder="审核状态0-未审核，1-审核通过，2审核不通过，3-初始化"/>
	                </div>
                    <div class="col-sm-2 control-label" style="width: 10%;">审核员编号</div>
                    <div class="col-sm-10" style="width: 40%;">
                        <input type="text" class="form-control" width="80%" v-model="shoot.reviewerId" placeholder="审核员编号"/>
                    </div>
                </div>
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">随拍类型</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="shoot.shootType" placeholder="随拍类型"/>
	                </div>
                    <div class="col-sm-2 control-label" style="width: 10%;">多媒体文件编号</div>
                    <div class="col-sm-10" style="width: 40%;">
                        <input type="text" class="form-control" width="80%" v-model="shoot.mediaId" placeholder="多媒体文件编号"/>
                    </div>
                </div>
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">创建时间</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="shoot.createTime" placeholder="创建时间"/>
	                </div>
                    <div class="col-sm-2 control-label" style="width: 10%;">更新时间</div>
                    <div class="col-sm-10" style="width: 40%;">
                        <input type="text" class="form-control" width="80%" v-model="shoot.updateTime" placeholder="更新时间"/>
                    </div>
                </div>
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">审核时间</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="shoot.checkTime" placeholder="审核时间"/>
	                </div>
            <div class="form-group">
            	<div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/carMove/shootCarMove.js?_${.now?long}"></script>
</body>
</html>